<p>
  <%= f.label :first_name %><br />
  <%= f.text_field :first_name %>
</p>
<p>
  <%= f.label :last_name %><br />
  <%= f.text_field :last_name %>
</p>
<p>
  <%= f.label :gender %>
  <br /><%= f.radio_button(:gender, 'M') %> Male
  <br /><%= f.radio_button(:gender, 'F') %> Female
</p>
<p>
  <%= f.label :birthdate %><br />
  <%= f.date_select :birthdate, :start_year => (Time.now()-20.years).year, :end_year => (Time.now()).year %>
</p>
<p>
  <%= f.label :level %><br />
  <%= f.text_field :level %>
</p>
<p>
  <%= f.label :shirt_size %><br />
  <%= f.text_field :shirt_size %>
</p>
<p>
  <%= f.label :shoe_size %><br />
  <%= f.text_field :shoe_size %>
</p>
<p>
  Goal in Miles<br />
  <%= f.text_field :goal %>
</p>


<%if params[:group_id]%>
  <input id="group_id" name="runner[group_id]" type="hidden" value = <%=params[:group_id]%>/>
<%else%>
<p>
  <%= f.label :group_id %><br />
  <%= collection_select(:runner, :group_id, Group.find(:all), :id, :name, {:prompt => true}) %>
</p>
<%end%>
